package com.ymatou.iapi.godfreight.service;

import org.json.JSONException;

import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;
/**
*商户自提点详情Call
*FreeMaker Template自动生成代码
*/
public class queryCollectionGoodsAddressInfoCall extends YmatouBaseCall{
	private static String opurl ="/queryCollectionGoodsAddressInfo";
	
	public queryCollectionGoodsAddressInfoCall() {
		super(EnvSetup.getSystemUrl("godfreight_api"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	
	public String getSuccess() throws JSONException
    {
        return  getString("success");
    }
	
	
	public String getRequestId() throws JSONException
    {
        return  getString("requestId");
    }
	
	
    public JsonObject  getData() throws JSONException
    {
        return getJsonObject().get("data").getAsJsonObject();
    }
    
}